export const PAGE_CODE = 'dcs-afterSales-claimSettlement';
import {PAGE} from '../constants';
const EMPTY_ARRAY = [];
export const PERMISSION = {
    update: 'update',
    finance: 'finance',
    confirmPI: 'confirmPI',
    submit: 'submit',
    invoice: 'invoice',
    abandon: 'abandon',
    approve: 'approve',
    reSettlement: 'reSettlement',
    add: 'add',
    export: 'export',
    historySearch: 'historySearch',
    exportPi: 'exportPi',
    upPi: 'upPi',
    moreApprove: 'moreApprove',
    ledgerExport: 'ledgerExport',
};

export const DEFAULT_QUERY_OPTION = {
    code: '',
    dealerId: '',
    brandId: '',
    tradeMethods: EMPTY_ARRAY,
    invoiceNotificationTime: EMPTY_ARRAY,
    createTime: EMPTY_ARRAY,
    uploadTime: EMPTY_ARRAY,
    status: EMPTY_ARRAY,
    pageIndex: PAGE.index,
    pageSize: PAGE.size,
};


export const DEFAULT_SUBMIT_DATA = {
    expenseAdjustments: [],
    claims: [],
    details: [],
};
import {dealerType, claimSettlementBillStatus} from '../Enum';
export const dealerConditions = {
    type: dealerType.总代
};

export const settlementBillStatus = claimSettlementBillStatus.pick([
    claimSettlementBillStatus.开票通知,
    claimSettlementBillStatus.已开票,
    claimSettlementBillStatus.已上报SAP,
    claimSettlementBillStatus.已赔付,
    claimSettlementBillStatus.SAP删除,
    claimSettlementBillStatus.已确认
]);

export const HISTORY_DEFAULT_QUERY_OPTION = {
    dealerId: '',
    code: '',
    status: undefined,
    banlaceDate: [],
    pageIndex: PAGE.index,
    pageSize: PAGE.size,
};
